package eis;



import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.event.AbortProcessingException;
import javax.faces.event.ActionEvent;
import javax.faces.event.ActionListener;


@ManagedBean
@SessionScoped
public class Employee implements ActionListener{

	private String firstName;
	private String lastName;
	private int age;
	private String project;

	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String fName) {
		this.firstName= fName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lName) {
		this.lastName = lName;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getProject() {
		return project;
	}
	public void setProject(String project) {
		this.project = project;
	}
	
	public void sayHello(ActionEvent actionEvent)
	{
		System.out.println("Hello World!");
	
	}
	@Override
	public void processAction(ActionEvent event)
			throws AbortProcessingException {
		System.out.println("Hello World!");
		
	}
	
}
